



<div class="mainbody">
<div class="navlink"><a href="#">控制面版</a> » 文章管理</div>
</div>


<div class="mainbody">
  <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td style="width: 150px;" valign="top">

<div class="tableborder">
<div class="tableheader">文章管理</div>
<div class="leftmenubody">
<div class="leftmenuitem">• 
<%=link_to "文章管理",:controller=>'admin/topic',:action=>'index'%></div>

<div class="leftmenuitem">•
<%=link_to "添加文章",:controller=>'admin/topic',:action=>'new'%></div>

<div class="leftmenuitem">•
<%=link_to_remote (
              "编辑文章", 
              {
              :update => "cp_main",
              :url => {:controller=>"admin/topic",
              :action => "list"},
              :complete => "new Effect.Highlight('cp_main')"
              },{:class=>"link_item"})
               %>
</div>


</div>
</div> <!--END leftmenubody -->
</div> <!--END tableborder -->

<div class="tableborder">  
<div class="tableheader">分类管理</div>
<div class="leftmenubody">
<div class="leftmenuitem">• 
<%=link_to "分类管理",:controller=>'admin/type',:action=>'index'%></div>

<div class="leftmenuitem">•
<%=link_to_remote (
              "添加分类", 
              {
              :update => "cp_main",
              :url => {:controller=>"admin/topic",
              :action => "new"},
              :complete => "new Effect.Highlight('cp_main')"
              },{:class=>"link_item"})
               %>
</div>

<div class="leftmenuitem">•
<%=link_to_remote (
              "编辑文章", 
              {
              :update => "cp_main",
              :url => {:controller=>"admin/topic",
              :action => "list"},
              :complete => "new Effect.Highlight('cp_main')"
              },{:class=>"link_item"})
               %>
</div>
</div> <!--END leftmenubody -->
</div> <!--END tableborder -->  

    </div> <!--END mainbody -->  

     </td>

      <td style="width: 20px;" valign="top"></td>

      <td valign="top">

      <div id="cp_main">
        <%= error_messages_for 'user' %>
<%= form_tag({:action => "create"},:multipart => true ,:onsubmit=>"javascript:KindSubmit();" )%>

<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr><td class="rightmainbody">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">



    <tr class="tdbheader">
      <td colspan="2">添加文章</td>
    </tr>

 <%= render :partial => 'newform' %>

    <tr class="tablecell">
      <td colspan="2" align="center">
      <%= submit_tag "发表文章", :class=>"formbutton"  %>
      <input type="reset" value="重置" class="formbutton"></td>
    </tr>

    <tr>
      <td class="tablebottom" colspan="8"></td>
    </tr>
      </table></td>
    </tr>

  </table>

<% end_form_tag %>

       </div>
        </td>
    </tr>
  </tbody></table>
</div>



